<!-- Title Variables -->
<% phc_title "PHCMembers - Member Listings Manager" %>
<% phc_title_tagline "Listing Index for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>

<!-- Page Header -->
<div class="row">
	<div class="col-lg-12">

		<!-- Bread Crumbs -->
		<ol class="breadcrumb">
			<li><%= link_to "Dashboard", member_root_path %></li>
			<li><%= link_to "Member Profile List", member_profiles_path %></li>
			<li class="active"><%= yield(:phc_title_tagline) %></li>
		</ol>

		<!-- Page Title -->
		<h3 class="page-title">
			<%= yield(:phc_title) %> </br>
			<small><%= yield(:phc_title_tagline) %></small>
		</h3>

	</div>
</div>

<!-- Main Content -->
<div class="row">
	<div class="col-lg-12">

		<div class="panel panel-default">
			<div class="panel-heading">

				<div class="caption">
					<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
				</div>

			</div>
			<div class="panel-body">

				<div class="table-scrollable">
					<table class="table table-striped table-bordered table-advance table-hover">
	
						<thead class="thead-inverse">
							<tr>
								<th>Company Name</th>
								<th>Conact Name</th>
								<th>City</th>
								<th>Country</th>
								<th>Listing Phone</th>
								<th>Listing Email</th>
								<th>Listing Website</th>
							</tr>
						</thead>

						<tbody>
							<% @member_listings.each do |member_listing| %>
								<tr>
									<td class="highlight"><%= link_to member_listing.mbcompanyname, member_profile_listing_path(member_listing.profile, member_listing) %></td>
									<td class="highlight"><%= link_to member_listing.mbcontactname, member_profile_listing_path(member_listing.profile, member_listing) %></td>
									<td class="highlight"><%= link_to member_listing.mbcity, member_profile_listing_path(member_listing.profile, member_listing) %></td>
									<td class="highlight"><%= link_to member_listing.mbcountry, member_profile_listing_path(member_listing.profile, member_listing) %></td>
									<td class="highlight"><%= link_to member_listing.mbphone, member_profile_listing_path(member_listing.profile, member_listing) %></td>
									<td class="highlight"><%= link_to member_listing.mbcontactemail, member_profile_listing_path(member_listing.profile, member_listing) %></td>
									<td class="highlight"><%= link_to member_listing.mbwebsite, member_profile_listing_path(member_listing.profile, member_listing) %></td>
								</tr>
							<% end %>
						</tbody>

					</table>
				</div>
			</div>
		</div>

		<%= link_to new_member_profile_listing_path, class: "btn btn-primary" do %>
			<i class="fa fa-plus"></i> <%= "Create a New Listing for " + @members_profile_info.mfirstname + " " + @members_profile_info.mlastname %>
		<% end %>

	</div>
</div>
